package com.cms.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信菜单表
 * </p>
 *
 * @author 作者
 * @since 2022-03-06
 */
@Data
public class BaseWechatMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建日期
     */
    private LocalDateTime createDate;

    /**
     * 修改日期
     */
    private LocalDateTime updateDate;

    /**
     * 父菜单ID
     */
    private Integer parentId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 关键词
     */
    private String keywords;

    /**
     * 链接地址
     */
    private String url;

    /**
     * 小程序appid
     */
    private String miniappid;

    /**
     * 小程序备用网页url
     */
    private String miniurl;

    /**
     * 小程序路径
     */
    private String minipath;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }
    public LocalDateTime getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getMiniappid() {
        return miniappid;
    }

    public void setMiniappid(String miniappid) {
        this.miniappid = miniappid;
    }
    public String getMiniurl() {
        return miniurl;
    }

    public void setMiniurl(String miniurl) {
        this.miniurl = miniurl;
    }
    public String getMinipath() {
        return minipath;
    }

    public void setMinipath(String minipath) {
        this.minipath = minipath;
    }

    @Override
    public String toString() {
        return "WechatMenu{" +
            "id=" + id +
            ", createDate=" + createDate +
            ", updateDate=" + updateDate +
            ", parentId=" + parentId +
            ", sort=" + sort +
            ", name=" + name +
            ", type=" + type +
            ", keywords=" + keywords +
            ", url=" + url +
            ", miniappid=" + miniappid +
            ", miniurl=" + miniurl +
            ", minipath=" + minipath +
        "}";
    }
}
